package com.bruce.demo2.patterns.demo3.behavioral.demo14.strategy;

/**
 * @PROJECT_NAME: design_patterns
 * @DESCRIPTION: 测试类
 * @AUTHOR: CNBruceLee
 * @DATE: 2021/8/29 20:34
 */
public class Test {

    @org.junit.Test
    public void test(){

        //春节活动
        SaleMan saleMan = new SaleMan();
        saleMan.setStrategy(new SpringFestival());
        saleMan.salesManShow();
        System.out.println("============================");

        //中秋节活动
        saleMan.setStrategy(new MidAutumnFestival());
        saleMan.salesManShow();
        System.out.println("============================");


        //圣诞节活动
        saleMan.setStrategy(new Christmas());
        saleMan.salesManShow();
        System.out.println("============================");

    }

}
